#include "OgreStableHeaders.h"
#include "OgreExIPort.h"


namespace OgreEx
{
	__ImplementAddress(IPort);

	IPort::~IPort()
	{
		std::deque<MessageHandlerBase*>::iterator iter = mHandlerQueue.c.begin();
		std::deque<MessageHandlerBase*>::iterator iterend = mHandlerQueue.c.end();
		for( ; iter != iterend ; ++iter )
		{
			delete (*iter);
		}
		mHandlerQueue.c.clear();
	}
}